import java.util.Scanner;

public class Employer {
    int id;
    String name;
    double salary;
    public double countSalary(double sales){
        if (sales<100000){
            return salary+sales*0.01;
        }else if (sales>=100000 && sales<200000){
            return salary+sales*0.02;
        }else{
            return salary+sales*0.03;
        }
    }
    public void showInfo(){
        Department department=new Department();
        department.name="销售部";
        System.out.println("员工信息\t员工编号:"+this.id+"\t姓名:"+this.name
                    +"\t底薪"+salary+"\t所在部门:"+department.name);
    }

    public static void main(String[] args) {
        Department d=new Department();
        Employer e=new Employer();
        d.id=0001;
        d.name="销售部";

        e.id=0033;
        e.name="郭德纲";
        e.salary=2000;
        d.showInfo();
        e.showInfo();
        Scanner in=new Scanner(System.in);
        System.out.print("请输入"+e.name+"本月销售额:");
        double money=in.nextDouble();
        double m=e.countSalary(money);
        System.out.println(e.name+"本月的工资为:"+m);
    }
}
